package maze.net.client;

import maze.net.MessageType;
import maze.pojo.Action;

public class SGMPResultEvent extends SGMPActionEvent {
	
	
	
	public SGMPResultEvent(MessageType messageType, Action self, Action enemy) {
		super(messageType, self, enemy);
	}

	public int getResult() {
		switch(getMessageType()) {
		case S_Win:
			return 1;
		case S_Draw:
			return 0;
		case S_Lose:
			return -1;
		}
		return 0;
	}
}
